package br.pucrio.inf.tamdera;

import java.util.List;

public class QueryReportBean 
{

	public QueryReportBean(final String ruleDecl) {
		super();
		this.ruleDecl = ruleDecl;
	}

	
	private boolean successfullyChecked;
	
	private List<String> violations;

	private String ruleDecl;

	public boolean isSuccessfullyChecked() {
		return successfullyChecked;
	}

	public void setSuccessfullyChecked(boolean successfullyChecked) {
		this.successfullyChecked = successfullyChecked;
	}

	public List<String> getViolations() {
		return violations;
	}

	public void setViolations(List<String> violations) {
		this.violations = violations;
	}
	
	public String getMessage ( )
	{
		if ( successfullyChecked )
		{
			return ruleDecl + " was successfully checked";
		}
		else 
		{
			return ruleDecl + " was neglected.";
		}
	}
}
